<?php
class Cms_View_Helper_BreadCrumb
{
    public $view;

    public function breadCrumb()
    {	
		$bread_crumb = NULL;
		$main = Zend_Controller_Front::getInstance();
		$request = $main->getRequest();
		$bread_crumb = ucfirst($request->getModuleName());
		
		if($request->getActionName() != '' && trim($request->getActionName()) != 'index')
		{
			$bread_crumb .= ' >> '.ucfirst($request->getControllerName());
			$bread_crumb .= ' >> '.ucfirst($request->getActionName());
		}
		else
		{
			if($request->getControllerName() != '' && trim($request->getControllerName()) != 'index')
				$bread_crumb .= ' >> '.ucfirst($request->getControllerName());
		}
	
		return $bread_crumb;
    }

    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }
}
?>